package com.feiyuan.generator.service;

import com.feiyuan.generator.pojo.entity.DataSourceEntity;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @ClassName DataSourceService
 * @Description 数据源配置
 * @Author Xupf xupengfei131276@126.com
 * @Date 2021/9/30 9:45
 * @Version 1.0
 */
public interface DataSourceService extends IService<DataSourceEntity> {

    /**
     * 查询
     * @param pageNo
     * @param pageSize
     * @return
     */
    IPage<DataSourceEntity> listPage(Integer pageNo, Integer pageSize);

    /**
     * 保存或修改
     * @param dataSourceEntity
     * @return
     */
    Object saveOrUpdateDataSource(DataSourceEntity dataSourceEntity);

    /**
     * 测试连接
     * @param id
     * @return
     */
    Boolean testDataSource(Long id);
}
